﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLNhaThuoc.DTO
{
    public abstract class NhanVien
    {
        private string _MaNV;

        public string MaNV
        {
            get { return _MaNV; }
            set { _MaNV = value; }
        }

        private string _Ho;

        public string Ho
        {
            get { return _Ho; }
            set { _Ho = value; }
        }

        private string _Ten;

        public string Ten
        {
            get { return _Ten; }
            set { _Ten = value; }
        }

        private string _LoaiNV;

        public string LoaiNV
        {
            get { return _LoaiNV; }
            set { _LoaiNV = value; }
        }

        private bool _GioiTinh;

        public bool GioiTinh
        {
            get { return _GioiTinh; }
            set { _GioiTinh = value; }
        }

        private DateTime _NgaySinh;

        public DateTime NgaySinh
        {
            get { return _NgaySinh; }
            set { _NgaySinh = value; }
        }

        private string _DiaChi;

        public string DiaChi
        {
            get { return _DiaChi; }
            set { _DiaChi = value; }
        }

        private string _SDT;

        public string SDT
        {
            get { return _SDT; }
            set { _SDT = value; }
        }

        private DateTime _NgayVaoLam;

        public DateTime NgayVaoLam
        {
            get { return _NgayVaoLam; }
            set { _NgayVaoLam = value; }
        }

        public string Username { get; set; }
        public string Password { get; set; }

        public object Clone(NhanVien nv)
        {
            MaNV = nv.MaNV;
            Ho = nv.Ho;
            Ten = nv.Ten;
            LoaiNV = nv.LoaiNV;
            GioiTinh = nv.GioiTinh;
            NgaySinh = nv.NgaySinh;
            DiaChi = nv.DiaChi;
            SDT = nv.SDT;
            NgayVaoLam = nv.NgayVaoLam;
            Username = nv.Username;
            Password = nv.Password;
            return MemberwiseClone();
        }

        public object Clone()
        {
            return MemberwiseClone();
        }

        public abstract void CapQuyenSuDung(Form frm);

    }
}
